package com.briup.labs.mapper;

import com.briup.labs.pojo.PageBean;
import com.briup.labs.pojo.SmartDevice;
import com.briup.labs.pojo.SmartDeviceType;
import com.briup.labs.pojo.SmartLabs;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SmartDeviceMapper {

    //查询所有，用于分页查询
    List<SmartDevice> all(String key, String typeId);

    //获取类型
    SmartDeviceType getType(String deviceType);

    //获取实验室
    SmartLabs getLabs(String labsId);

    //修改
    void update(SmartDevice smartDevice);

    //添加
    void add(SmartDevice smartDevice);

    //删除
    void delete(String id);
}
